package my.diplom.dao;

import my.diplom.entity.Application;
import my.diplom.entity.Resource;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gb
 * Date: 13.07.2009
 * Time: 23:50:55
 * To change this template use File | Settings | File Templates.
 */
public interface IResourceDAO {
    void create(Resource resource);
    void update (Resource resource);
    Resource getById (Long resourceId);
    Resource getById (Long resourceId, boolean initProjects);
    List<Resource> getAll();
    List<Resource> getAll(boolean initAll);
    List<Resource> getResourcesByLogin(String login);
    Resource getByName(String resourceName);
    void delete (Resource resource);
}
